'''
* This is the projet for Brtc LlmOps Platform
* @Author Leon-liao <liaosiliang@alltman.com>
* @Description //TODO 
* @File: tool_entity.py
* @Time: 2025/9/24
* @All Rights Reserve By Brtc
'''
from pydantic import BaseModel, Field


class ToolEntity(BaseModel):
    """API工具实体信息"""
    id:str=Field(default="", description="API提供者对应的ID")
    name: str = Field(default="", description="API工具的名称")
    url: str = Field(default="", description="API工具发起请求的url地址")
    method: str = Field(default="", description="API工具发起请求的方法")
    description: str = Field(default="", description="API提供者对应的描述")
    headers: list[dict] = Field(default_factory=list, description="API工具对应的头信息")
    parameters: list[dict] = Field(default_factory=list, description="API工具的参数信息")